import request from '@/utils/request'

// 查询订单管理列表
export function listOrdera(query) {
  return request({
    url: '/ruoyi-manage/order/pageorder',
    method: 'get',
    params: query
  })
}

// 查询订单管理详细
export function getOrdera(oid) {
  return request({
    url: '/ruoyi-manage/order/' + oid,
    method: 'get'
  })
}

// 新增订单管理
export function addOrdera(data) {
  return request({
    url: '/ruoyi-manage/order',
    method: 'post',
    data: data
  })
}

// 修改订单管理
export function updateOrdera(data) {
  return request({
    url: '/ruoyi-manage/order/update',
    method: 'put',
    data: data
  })
}

// 删除订单管理
export function delOrdera(oid) {
  return request({
    url: '/ruoyi-manage/order/' + oid,
    method: 'delete'
  })
}
// 拼团点查询订单
export function itemOrder0(query) {
  return request({
    url: '/ruoyi-manage/order/itemOrder0',
    method: 'get',
    params: query
  })
}

export function orderLike(query) {
  return request({
    url: '/ruoyi-manage/order/orderLike',
    method: 'post',
    data: query
  })
}
